﻿namespace CodeParser.Tokens
{
    public static class StringUtils
    {

        public static bool Matches(string source, int index, string keyword)
        {
            var match = true;
            for (var l = 0; l < keyword.Length; l++)
            {
                if (source[index + l] != keyword[l])
                {
                    match = false;
                    break;
                }
            }
            return match;
        }

    }

}
